/**
 *  Copyright (C) 2006 zhangbo (freeeob@gmail.com)
 *
 *  This product is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; either version 2.1 of the License, or
 *  (at your option) any later version.
 * 
 *  This product is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
 *
 *  author:zhangbo
 *  Email:jsjava@gmail.com
 */

/**
 * Constrcutor
 */ 
function ChinaVillage(){
	this.jsjava_class="jsorg.eob.information.country.cn.ChinaVillage";
}

/**
 * Set the village id
 * @param id village id
 */
ChinaVillage.prototype.setId=function(id){
	this.id=id;
};

/**
 * Get the village id
 */
ChinaVillage.prototype.getId=function(){
	return this.id;
};

/**
 * Set the village name
 * @param name village name
 */
ChinaVillage.prototype.setName=function(name){
	this.name=name;
};

/**
 * Get the village name
 */
ChinaVillage.prototype.getName=function(){
	return this.name;
};

/**
 * Set the town belonged to
 * @param town the town belonged to
 */
ChinaVillage.prototype.setTown=function(town){
	this.town=town;
};

/**
 * Get the town belonged to
 */
ChinaVillage.prototype.getTown=function(){
	return this.town;
};

/**
 * Get the village description
 */
ChinaVillage.prototype.toString=function(){
	var str="["+this.id+","+this.name+"]";
	return str;
};